/**
 * Exports all OIDC providers events
 */
export const OIDC_EVENTS = [
  "access_token.destroyed",
  "access_token.saved",
  "access_token.issued",
  "authorization_code.consumed",
  "authorization_code.destroyed",
  "authorization_code.saved",
  "authorization.accepted",
  "authorization.error",
  "authorization.success",
  "backchannel.error",
  "backchannel.success",
  "jwks.error",
  "client_credentials.destroyed",
  "client_credentials.saved",
  "client_credentials.issued",
  "device_code.consumed",
  "device_code.destroyed",
  "device_code.saved",
  "discovery.error",
  "end_session.error",
  "end_session.success",
  "grant.error",
  "grant.revoked",
  "grant.success",
  "initial_access_token.destroyed",
  "initial_access_token.saved",
  "interaction.destroyed",
  "interaction.ended",
  "interaction.saved",
  "interaction.started",
  "introspection.error",
  "replay_detection.destroyed",
  "replay_detection.saved",
  "pushed_authorization_request.error",
  "pushed_authorization_request.success",
  "pushed_authorization_request.destroyed",
  "pushed_authorization_request.saved",
  "refresh_token.consumed",
  "refresh_token.destroyed",
  "refresh_token.saved",
  "registration_access_token.destroyed",
  "registration_access_token.saved",
  "registration_create.error",
  "registration_create.success",
  "registration_delete.error",
  "registration_delete.success",
  "registration_read.error",
  "registration_update.error",
  "registration_update.success",
  "revocation.error",
  "server_error",
  "session.destroyed",
  "session.saved",
  "userinfo.error"
];

export const OIDC_ERROR_EVENTS = OIDC_EVENTS.filter((e) => e.includes("error"));
